package com.bauer.java.springboot.simpleapp.dto;

import lombok.Data;

/**
 * @description:
 * @author: weirui
 * @create: 2020-10-19 16:38
 **/
@Data
public class BaseResponse {

    private Integer code;

    private String msg;

    private Object data;

    public BaseResponse(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BaseResponse(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
